tricky sql queries for interview